package com.example.gitproject.Entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class Teacher {
   @Value("${Teacher.name}")
    private  String  name;

    @Value("${Teacher.age}")
    private  int   age;
}
